//
// Created by ASUS on 2022/7/28.
//

#ifndef LIVEP_USER_H
#define LIVEP_USER_H

#include "IUser.h"
#include "msg.h"
#include<cstring>

class User : public virtual IUser {
public:
    void *Login() override {
        if (strcmp(this->username, "user") != 0 || strcmp(this->password, "user") != 0) {
            return (void *) UserLoginSuccess;
        }
        return (void *) UserLoginFail;
    }

    User(char *username, char *password) {
        this->username = username;
        this->password = password;
    }

private:
    char *username;
    char *password;
};


#endif //LIVEP_USER_H
